
$(function () {
	// body...


	 $.ajax({
        url: severUrl+'index.php?m=Web&a=page&page_id='+titleUrl.page_id,
        type: 'GET',
        dataType: 'JSONP'
    })
    .done(function(data) {
        console.log("success");
        console.log(data);
        articleFun(data.page_data);
        
    })
    .fail(function() {
        console.log("error");
    })
    .always(function() {
        console.log("complete");
    });




// article
 function articleFun(data){
    var Con = $('#articleInfo')
    var dari = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
    var nian = new Date(parseInt(data.time)*1000).Format('yyyy');
    var yue = new Date(parseInt(data.time)*1000).Format('MM');
    var ri = new Date(parseInt(data.time)*1000).Format('dd');


    Con.find('#bacnnerC').attr('src',data.image_url);

    Con.find('#title').text(expandEntities(data.title));

    // Con.find('.dateinfo').find('span').text(dari[yue]+' '+ri+'，'+nian);
    Con.find('#word').html(expandEntities(data.content));
    console.log(data.content)


 }
// article end


})